package com.xiaolin.spring.annotation.config;

import com.xiaolin.spring.annotation.MultBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

/**
 * @ClassName MultBeanConfig
 * @Description TODO
 * @Detail detail
 * @Author MyPC
 * @Date 2020/10/27
 * @Version 1.0
 */
@Configuration
public class MultBeanConfig {

    @Bean
    @Primary
    public MultBean getOne(){
        return new MultBean();
    }
    @Bean
    public MultBean getTwo(){
        return new MultBean();
    }


}
